<template>
  <ul class="common-list-nav clearfix">
    <li class="nav-item" v-for="(item,index) in navList" @click="toRoute(item.path)">
      {{item.name}}
      <span>></span>
    </li>
  </ul>
</template>
<script>
  export default {
    data () {
      return {}
    },
    props: ['navList'],
    methods: {
      toRoute (route) {
        if (route) {
          this.$router.push('/' + route)
        }
      }
    }
  }
</script>
